import { ViewComponent } from './components'
import { Text } from '@tarojs/components'
import { generateUniqueId } from '../utils/key'

export class TextView implements ViewComponent {
  constructor(private text: string) {}
  render() {
    return <Text id={generateUniqueId('id-')}>{this.text}</Text>
  }
}
